package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
)

type Agent struct {
	Id               uint
	Uid              uint
	Diamond          uint //钻石数目
	WithdrawnDiamond uint //已领取钻石数目
	Profit           float64
	TotalProfit      float64
	InviteCode       string
	UpdatedTime      int64 `gorm:"autoUpdateTime"`
	CreatedTime      int64 `gorm:"autoCreateTime"`
}

func (Agent) TableName() string {
	return fmt.Sprintf("%sagent", models.Prefix)
}
